import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../../services/http-client.service';
@Injectable()
export class StopfundPageService {
    constructor(public httpClient: HttpClientService) { }
    // 分页列表
    list(getBody) {
        return this.httpClient.get('/pms/v1/productquery/listPageAccountCloseCapital', getBody);
    }
    // 获取产品账户列表
    getAccountList() {
        return this.httpClient.get('/pms/v1/productquery/getCloseCapitalFundInfo');
    }
    // 判断账户是否存在已完结流水资金
    checkAccount(nFundNo) {
        return this.httpClient.get('/pms/v1/productquery/checkIsHasCloseCapital', 'nFundNo=' + nFundNo);
    }
    // 手工录入
    add(postBody) {
        return this.httpClient.post('/pms/v1/productquery/insert', postBody);
    }
    // 修改
    edit(putBody) {
        return this.httpClient.put('/pms/v1/productquery/update', putBody);
    }
    // 删除
    del(putBody) {
        return this.httpClient.put('/pms/v1/productquery/delete', putBody);
    }
}